<HEAD>
  <SCRIPT SRC="../ganja.js"></SCRIPT>
</HEAD>
<BODY><SCRIPT>
// In Vector space R3, rotate a color around the hue axis and output 
// the result using the graph function.
Algebra(3,()=>{
  var axis=(1e12+1e23-1e13).Normalized;
  document.body.appendChild(this.graph((x,y)=>{
    var xx= Math.atan2(y,x);
    var c=1e1, rot=Math.cos(xx/2) + Math.sin(xx/2)*axis;
    return ((2-(x**2+y**2)**0.5)*(rot>>>c)).Vector;
  }));
  
});
</SCRIPT></BODY>